import request from '@/plugins/request.js'
/**
 *Cp配置
 */
//获取cp列表
export function getCpConfigs(data) {
    return request({
        url: '/cp-configs',
        method: 'GET',
        data
    })
}
//删除cp
export function deleteCpConfigs(data) {
    return request({
        url: '/cp-config/'+data,
        method: 'PUT',
    })
}
//新增
export function addCpConfigs(data) {
    return request({
        url: '/cp-config',
        method: 'POST',
        data
    })
}
////编辑Cp
export function editCpConfigs(data) {
    return request({
        url: '/cp-config',
        method: 'PUT',
        data
    })
}

/**
 * 属性设置
 */
//获取属性列表
export function getAttributes(data) {
    return request({
        url: '/attributes',
        method: 'GET',
        data
    })
}
//删除属性
export function deleteAttributes(data) {
    return request({
        url: '/attribute/'+ data,
        method: 'DELETE',
    })
}
//添加属性
export function addAttributes(data) {
    return request({
        url: '/attribute',
        method: 'POST',
        data
    })
}
//编辑属性
export function EditAttributes(data) {
    return request({
        url: '/attribute',
        method: 'PUT',
        data
    })
}

/**
 * 统计设置
 */
//获取统计列表
export function getStatistics(data) {
    return request({
        url: '/statistics-s',
        method: 'GET',
        data
    })
}
//删除统计
export function deleteStatistics(data) {
    return request({
        url: '/statistics/'+data,
        method: 'DELETE',
    })
}
//新增
export function addStatistics(data) {
    return request({
        url: '/statistics',
        method: 'POST',
        data
    })
}
//编辑统计
export function EditStatistics(data) {
    return request({
        url: '/statistics',
        method: 'PUT',
        data
    })
}
//获取百分比列表
export function getPercent(data) {
    return request({
        url: '/percent/'+data,
        method: 'GET'
    })
}
//编辑百分比
export function addOrEditPercent(data) {
    return request({
        url: '/percent',
        method: 'POST',
        data
    })
}

/**
 * 检测特征
 */
//获取检测特征列表
export function getFeatures(data) {
    return request({
        url: '/features',
        method: 'GET',
        data
    })
}


